#include <iostream>
using namespace std;
int main()
{
int x,y;
cin>>x>>y;
if(x>y&&y!=0)cout<<x/y<<endl;
else if(x!=0)cout<<y/x<<endl;
return 0;	
}
//输入96 10 输出9 
